﻿namespace Longbow.Web
{
    /// <summary>
    ///
    /// </summary>
    internal class JuheIPLocatorResult
    {
        /// <summary>
        ///
        /// </summary>
        public string Country { get; set; }

        /// <summary>
        ///
        /// </summary>
        public string Province { get; set; }

        /// <summary>
        ///
        /// </summary>
        public string City { get; set; }

        /// <summary>
        ///
        /// </summary>
        public string Isp { get; set; }

        /// <summary>
        ///
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return Country != "中国" ? $"{Country} {Province} {Isp}" : $"{Province} {City} {Isp}";
        }
    }
}
